unit TAAHHUTNAMEFORMU;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComCtrls, DBCtrls, DB, ADODB, ExtCtrls;

type
  TFRMTAAHHUTNAME = class(TForm)
    ADOTable1: TADOTable;
    Button1: TButton;
    DBRichEdit1: TDBRichEdit;
    DBNavigator1: TDBNavigator;
    DataSource1: TDataSource;
    OpenDialog1: TOpenDialog;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FRMTAAHHUTNAME: TFRMTAAHHUTNAME;

implementation

{$R *.dfm}

procedure TFRMTAAHHUTNAME.Button1Click(Sender: TObject);
VAR
DOSYA:STRING;
begin
IF OPENDIALOG1.Execute THEN
DOSYA:=OPENDIALOG1.FileName ;
IF DOSYA<>'' THEN
DBRICHEDIT1.Lines.LoadFromFile(DOSYA)
ELSE
SHOWMESSAGE('DOSYA YOK');

end;

end.
